(function () {
    // 基础类型
    var flag = true;
    var num = 110;
    var str = '周张恒';
    //任意类型
    var any;
    var unknown;
    var S;
    unknown = "zhou";
    //    S = unknown 会报错不能直接赋值
    /* 类型断言 */
    S = unknown;
    S = unknown;
    // ====对象类型 ===
    var obj;
    obj = {};
    obj = function () { };
    /* 可以用来指定对象中拥有那些属性
      在属性名后面加上 ? 表示属性是可选的
    */
    var zhou;
    zhou = { name: '周张恒', age: 20 };
    // [propName: string]: any 表示任意类型的属性
    var ph;
    ph = { age: 18, name: "彭慧", sex: 'female' };
    // 数组类型
    var numArr;
    var strArr;
    var boolArr;
    numArr = [12, 344, 54];
    strArr = ['asas', 'sasa'];
    // 元组类型
    var h;
    h = ['aaa', 123, false];
    // 枚举类型
    var Gender;
    (function (Gender) {
        Gender[Gender["Male"] = 0] = "Male";
        Gender[Gender["Female"] = 1] = "Female";
    })(Gender || (Gender = {}));
    var zzh;
    zzh = { name: "zzh", gender: 1 };
    console.log(zzh);
})();
